package com.itheima.String;

import java.util.Scanner;

public class DmeoScanner {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入字符串2:");
        String s1 = sc.next();  //在输出字符串2的时候如果有空格键 next就会接收到结束
        System.out.println("请输入字符串1:");
        String s = sc.nextLine();    //在输出字符串2的时候需要回车,当下面nextline接收到回车时就会结束
        System.out.println(s);
        System.out.println(s1);
    }
}
